package com.zhongen.oa.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zhongen.admin.api.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 项目合同
 *
 * @author Code Generator
 * @date 2024-01-18 14:42:21
 */
@Data
@TableName("project_contract")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "项目合同")
public class ProjectContractEntity extends Model<ProjectContractEntity> {

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "id")
	@ExcelIgnore
	private Long id;

	/**
	 * 合同编号
	 */
	@Schema(description = "合同编号")
	@ExcelProperty("合同编号")
	private String contractNumber;

	/**
	 * 合同名称
	 */
	@Schema(description = "合同名称")
	@ExcelProperty("合同名称")
	private String contractName;

	/**
	 * 合同内容
	 */
	@Schema(description = "合同内容")
	@ExcelProperty("合同内容")
	private String contractContent;

	/**
	 * 合同金额
	 */
	@Schema(description = "合同金额")
	@ExcelProperty("合同金额")
	private BigDecimal contractMoney;

	/**
	 * 合同类型
	 */
	@Schema(description = "合同类型")
	@ExcelProperty("合同类型")
	private String contractType;

	/**
	 * 合同序号
	 */
	@Schema(description = "合同序号")
	@ExcelIgnore
	private Long contractSort;

	/**
	 * 签订日期
	 */
	@Schema(description = "签订日期")
	@ExcelProperty("签订日期")
	private LocalDate signDate;

	/**
	 * 流转日期
	 */
	@Schema(description = "流转日期")
	@ExcelIgnore
	private LocalDate circulationDate;

	/**
	 * 项目编号
	 */
	@Schema(description = "项目编号")
	@ExcelProperty("项目编号")
	private String projectNumber;

	/**
	 * 项目id
	 */
	@Schema(description = "项目id")
	@ExcelIgnore
	private Long projectId;

	/**
	 * 部门id
	 */
	@Schema(description = "部门id")
	@ExcelIgnore
	private Long deptId;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	@ExcelIgnore
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	@ExcelIgnore
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "更新人")
	@ExcelIgnore
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "更新时间")
	@ExcelIgnore
	private LocalDateTime updateTime;

	/**
	 * 删除状态
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "删除状态")
	@ExcelIgnore
	private String delFlag;

	@TableField(exist = false)
	@Schema(description = "附件列表")
	@ExcelIgnore
	private List<SysFile> fileList;

}
